package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Permission;

import java.util.List;
import java.util.Map;

public interface PermissionService {
    void save(Permission permission);

    void update(Permission permission);

    void delete(String id);

    Permission findById(String id);

    List<Permission> findAll();

    PageInfo findAll(int page,int size);

    //通过角色ID查找对应权限
    List<Map> findAuthorDataByRoleId(String roleId);

}
